<?php
session_start();

$action = $_REQUEST['action'];

switch ($action) {
    case "logout":
        $_SESSION['logueado'] = null;
        $_SESSION['user_id'] = null;
        header("Location: {$_SERVER['HTTP_REFERER']}");
        break;
    default: break;
}
?>
